package com.ym.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ym.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Accessors(chain = true)
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_permission")
@Schema(description = "SysPermission实体类")
public class SysPermission extends BaseEntity {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType. AUTO)
    private Integer id;
    /**
     * 权限名称
     */
    @TableField("permission_name")
    @Schema(description = "权限名称")
    private String permissionName;
    /**
     * 删除标记
     */
    @TableField("del_flag")
    @Schema(description = "删除标记")
    private Byte delFlag;
}